<template>
  <div class="register">
    <div class="title">
      <p>注册</p>
    </div>
    <div class="form">
      <input
        type="text"
        placeholder="请输入手机号"
        class="phone"
        v-model="phone"
      />
      <div class="registor-code">
        <input type="text" placeholder="请输入图形码" ref="input" />
        <span>获取验证码</span>
      </div>
      <div class="password-input">
        <input type="text" placeholder="请输入短信验证码" ref="input" />
        <span>获取验证码</span>
      </div>

      <div class="submit">注册</div>
      <div class="choose">
        <span>已有账号~</span>
        <span @click="$router.push('/login')">去登录></span>
      </div>
      <div class="codition">
        <span>我已阅读并同意</span>
        <span>《用户注册协议及隐私政策》</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {},
  data() {
    return {
      phone: null,
    };
  },
};
</script>
<style lang="scss" scoped>
$color: #eee;
.register {
  box-sizing: border-box;
  padding: 0 10rem;
  display: flex;
  flex-direction: column;
  .title {
    p {
      font-size: 18rem;
      color: #333;
      font-weight: bold;
    }
  }
  .form {
    flex-grow: 1;
    margin-top: 30rem;
    position: relative;
    input {
      border: none;
      font-size: 15rem;
    }
    input.phone {
      width: 100%;
      border-bottom: 1px solid $color;
      padding: 10rem 0;
      //   color: #ccc;
      margin-bottom: 30rem;
    }
    .registor-code,
    .password-input {
      border-bottom: 1px solid $color;
      padding: 10rem 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 40rem;
      input {
        width: 60%;
      }

      span {
        color: #fc1c1c;
        padding: 4rem;
        border: 1rem solid #fc1c1c;
      }
    }
    .submit {
      width: 100%;
      height: 44rem;
      border: none;
      background: linear-gradient(90deg, #fc1f1d, #fd7326);
      border-radius: 22rem;

      color: #fff;
      font-size: 18rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .choose {
      display: flex;
      justify-content: center;
      margin-top: 15rem;
      span {
        font-size: 14rem;
        color: #999;
        // padding: 0 10rem;
        &:last-child {
          color: #fc1c1c;
          //   border-left: 1px solid $color;
        }
      }
    }
    .codition {
      width: 100%;
      position: absolute;
      bottom: 30rem;
      display: flex;
      justify-content: center;
      span {
        font-size: 13rem;
        color: #999;
        &:last-child {
          color: #fc1e1e;
        }
      }
    }
  }
}
</style>
